package com.usion.myclass.controller;

import com.usian.common.ResultVo;
import com.usion.myclass.service.ClasssService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("classs")
public class ClasssController {
    @Autowired
    private ClasssService classsService;
    @RequestMapping("info")
    public ResultVo info(int id){
      return new ResultVo(0,"success",classsService.getById(id));
    }
}
